package com.njitzx.entity.po;

import java.time.LocalDateTime;
import java.math.BigDecimal;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import lombok.EqualsAndHashCode;
/**
 * <p>
 * 商品-订单关联表
 * </p>
 *
 * @author 周鑫
 * @since 2024-08-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="OrderGoods对象", description="商品-订单关联表")
public class OrderGoods implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    private Integer id;

    @ApiModelProperty(value = "订单id")
    private Integer orderId;

    @ApiModelProperty(value = "商品id")
    private Integer goodsId;

    @ApiModelProperty(value = "商品单价")
    private BigDecimal goodsPrice;

    @ApiModelProperty(value = "购买单个商品数量")
    private Integer goodsNumber;

    @ApiModelProperty(value = "商品小计价格")
    private BigDecimal goodsTotalPrice;

}
